import request from '@/utils/request'

// 查询应用接口流量列表
export function listReportAppFlow(query) {
  return request({
    url: '/report/reportAppFlow/list',
    method: 'get',
    params: query
  })
}

// 查询应用接口流量详细
export function getReportAppFlow(id) {
  return request({
    url: '/report/reportAppFlow/' + id,
    method: 'get'
  })
}

// 新增应用接口流量
export function addReportAppFlow(data) {
  return request({
    url: '/report/reportAppFlow',
    method: 'post',
    data: data
  })
}

// 修改应用接口流量
export function updateReportAppFlow(data) {
  return request({
    url: '/report/reportAppFlow',
    method: 'put',
    data: data
  })
}

// 删除应用接口流量
export function delReportAppFlow(id) {
  return request({
    url: '/report/reportAppFlow/' + id,
    method: 'delete'
  })
}

// 查询应用接口流量列表
export function listAllReportAppFlow(query) {
  return request({
    url: '/report/reportAppFlow/all/list',
    method: 'get',
    params: query
  })
}
